<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>渲染列表v-for</title>
</head>
<body>
    <div id="app">
        <ul>
            <li v-for="list in todo">
                {{ list.text }}
            </li>
        </ul>
    </div>

    <script src="../lib/vue.js"></script>
    <script>
        /*
        * vue.js使用v-for来渲染列表
        * */
        new Vue({
            el : "#app",
            data : {
                todo : [
                    {text : "learn javascript"},
                    {text : "learn vue.js"},
                    {text : "learn angular.js"},
                    {text : "learn react.js"}
                ]
            }
        })
    </script>
</body>
</html>